#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:homework1_1.py
# author:wmf
# datetime:2021/3/7 17:38
# software: PyCharm
'''
this is function description
'''
# import module your need

#1 元素输出和查找：  请输出0-50之间的奇数，偶数，质数；能同时被2和3整除的数；

#输出0-50的奇数
print("0-50的奇数有:")
for i in range(1,51):
    while(i%2 ==1):
        print(i,end=' ')
        break

print('\n')

#输出0-50的偶数
print("0-50的偶数有:")
for i in range(1,51):
    while(i%2 ==0):
        print(i,end=' ')
        break

print('\n')

#输出0-50的质数
print("0-50的质数有:")
for i in range(2,51):
    for j in range(2,i):
        if(i%j==0):
            break
    else:
        print(i,end=' ')

print('\n')

#输出0-50内能被2和3同时整除的数:
print("0-50内能同时被2和3整除的数有:")
for i in range(1,51):
    if(i%2==0 and i%3==0):
        print(i,end=' ')

